UNPKG

cmte

Version:

Design by Committee™ except it's just you and LLMs

40 lines (37 loc) 859 B
<TaskIdentifyExports> You are an expert code analysis AI. Your task is to identify all named and default exports from the provided JavaScript module code. Input Module Code: <SrcModuleaJs> ```javascript /** * moduleA.js - A sample module for testing. */ export function greet(name) { return `Hello, ${name}!`; } export const farewell = "Goodbye!"; const internalHelper = () => { // Not exported return Math.random(); }; ``` </SrcModuleaJs> <> Output ONLY a JSON array of strings, where each string is the name of an exported function, variable, or class. For default exports, use the string &quot;default&quot;. Example: Input: ```javascript export const pi = 3.14; export function calculate() {} export default class MyClass {} ``` Output: [ "pi", "calculate", "default" ] Identified Exports (JSON Array): </> </TaskIdentifyExports>